//
//  sierpinski_triangle_2d_recursion.h
//  GLDemo
//
//  Created by wneqi on 14-5-30.
//  Copyright (c) 2014年 xiewneqi. All rights reserved.
//

#ifndef GLDemo_sierpinski_triangle_2d_recursion_h
#define GLDemo_sierpinski_triangle_2d_recursion_h

#ifdef __APPLE__
#include <GLUT/glut.h>
#define glGenVertexArrays glGenVertexArraysAPPLE
#define glBindVertexArray glBindVertexArrayAPPLE
#else
#include "GL/glew.h"
#include <GL/glut.h>
#endif

#include "math_tools.h"

void init_sierpinski_2d_recursion_main (int argc, char** argv);

void init_sierpinski_2d_recursion_gl ();

void display_sierpinski_2d_recursion ();

void makeup_triangle (Point2 a, Point2 b, Point2 c);

void divide_triangle (Point2 a, Point2 b, Point2 c, int k);

void setup_triangles_data ();

#endif
